package com.demo.service;

import com.demo.dto.SysUserDTO;
import com.demo.dto.UserDTO;
import com.demo.entity.SysUser;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface SysUserService {
    SysUser getByLoginName(String loginName);

    SysUser getByUserId(String userId);

    int add(SysUser user);

    int password(String loginName, String loginPass);

    PageInfo<SysUser> list(int pageIndex, int pageSize);

    PageInfo<SysUserDTO> listByRole(int pageIndex, int pageSize, String depId, String userNumber);

    List<SysUserDTO> listDepUser(String depId, String userNumber);

    int update(SysUser user);

    int remove(String loginName);

    int cleanUser(String loginName);

    int confirmLoginName(String loginName, String telephone, String dingDing);

    SysUser findFromUserID(String userId);

    int backUser(String userId);

    String pass(String loginName);

    int roleId(String userId, String roleId);

    int updateStudentLeader(String userId, String leaderId);


    List<UserDTO> findUserIdByRoleId(String roleId);
}